﻿using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Abp.Application.Services;
using Abp.IdentityFramework;
using Abp.Runtime.Session;
using SportsPlatform.Authorization.Users;
using SportsPlatform.MultiTenancy;
using SportsPlatform.Jwt;
using Microsoft.AspNetCore.Http;
using Abp.Domain.Repositories;
using SportsPlatform.Model.PermissionManagement;
using Abp.Dependency;

namespace SportsPlatform
{
    /// <summary>
    /// Derive your application services from this class.
    /// </summary>
    public abstract class SportsPlatformAppServiceBase : ApplicationService
    {
        public TenantManager TenantManager { get; set; }

        public UserManager UserManager { get; set; }

        /// <summary>
        /// HttpContext
        /// </summary>
        public readonly IHttpContextAccessor _context;

       
        public SportsPlatformAppServiceBase()
        {
            LocalizationSourceName = SportsPlatformConsts.LocalizationSourceName;
        }
        protected SportsPlatformAppServiceBase(IHttpContextAccessor context)
        {
            LocalizationSourceName = SportsPlatformConsts.LocalizationSourceName;
            _context = context;
        }

     
      
    }
}
